<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        img{
            display: block;
        }
        .box{
            width: 350px;
            border: 5px solid black;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            transition: all 1s;
        }
        .box:hover{
            transform: translateX(50px);
            /* opacity: 0.5; */
        }
        .box img{
            width: 100%;
            transition: all 1s;
        }
        .box:hover img{
            /* transform: translateX(50px); */
            opacity: .8;
        }
        .box h2{
            position: absolute;
            left: 50px;
            top: 10px;
            color: white;
            transition: all 1s 0.6s;
        }
        .box:hover h2{
            transform: translate(50px);
        }
        .box p{
            position: absolute;
            left: 100px;
            width: 100px;
            color: white;
            background-color: black;
            transition: all 1s;
        }


        .box .p1{
            top: 100px;
            transform: translateY(400px);
        }
        .box:hover .p1{
            /* top: 100px; */
            transform: translateY(0px);
        }


        .box .p2{
            top: 200px;
            transform: translateX(500px);
        }
        .box:hover .p2{
            /* top: 100px; */
            transform: translateX(0px);
        }
        
        .box .p3{
            top: 300px;
            transform: translateX(-500px);
        }
        .box:hover .p3{
            /* top: 100px; */
            transform: translateX(0px);
        }
    </style>
</head>
<body>
    <div class="box">
        <img src="./img/1 (1).jpeg" alt="">
        <h2>title</h2>
        <p class="p1">能能酱酱</p>
        <p class="p2">笑笑酱酱</p>
        <p class="p3">瑶瑶酱酱</p>
    </div>
</body>
</html>